package com.wms.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface TuPianMapper {

    //上传图片 并存储地址
    @Insert("INSERT INTO waximg (name,url)VALUES(#{name},#{url})")
    void insertImg(@Param("name") String name,@Param("url") String url);

    //产看所有的图片信息
    @Select("SELECT * from waximg")
    List<Map> tuPianService();
}
